@import 'common';

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    // 1.5代表字体的大小，相当于也是1.5rem
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background: #F2F2F2;
}

// 导航栏模块
@baseFont: 50;

.head-search-nav {
    position: fixed;
    display: flex;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: 88rem / @baseFont;
    background-color: #d1a471;
    align-content: center;
    justify-content: space-between;

    div,
    input,
    span {
        overflow: hidden;
        box-sizing: border-box;
    }

    .search-name {
        flex: 1;

        input {
            display: block;
            margin: 20rem / @baseFont auto;
            width: 150rem / @baseFont;
            height: 50rem / @baseFont;
            background-color: rgb(239, 239, 240);
            border: none;
            border-radius: 28rem / @baseFont;
            text-align: center;
            font-size: 20rem / @baseFont;
            box-shadow: 5rem / @baseFont 3rem / @baseFont 4rem / @baseFont rgba(14, 14, 14, 0.3);
            outline: none;
        }

    }

    .search-price {
        flex: 2;

        span {
            display: inline-block;
            font-size: 20rem / @baseFont;
            font-weight: 500;
        }

        span:nth-child(1) {
            margin-left: 10rem / @baseFont;
        }

        input {
            font-size: 15rem / @baseFont;
            display: inline-block;
            width: 100rem / @baseFont;
            height: 30rem / @baseFont;
            box-shadow: 5rem / @baseFont 3rem / @baseFont 4rem / @baseFont rgba(14, 14, 14, 0.3);
            outline: none;
            border: none;
            vertical-align: middle;
        }
    }

    .search {
        flex: 1;

        button {
            width: 100rem / @baseFont;
            height: 50rem / @baseFont;
            font-size: 20rem / @baseFont;
            border-radius: 30rem / @baseFont;
            margin-left: 40rem / @baseFont;
            background-color: rgb(23, 184, 23);
            border: none;
        }
    }
}

// 查询结果模块

.result {
    width: 100%;
    background-color: aqua;
    padding-top: 88rem / @baseFont;

    ul {
        padding: 0;
        margin: 0;
        display: flex;
        list-style: none;
        width: 100%;
        background-color: rgb(171, 173, 182);
        flex-wrap: wrap;
        justify-content: space-around;
        align-content: flex-start
    }

    li {
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        flex-direction: column;
        display: block;
        box-sizing: border-box;
        flex: 1;
        height: 255rem / @baseFont;
        background-color: rgb(223, 223, 223);
        margin: 10rem / @baseFont;
        border: 1rem / @baseFont solid rgb(126, 126, 126);
        box-shadow: 7rem / @baseFont 4rem / @baseFont 6rem / @baseFont rgba(14, 14, 14, 0.6);

        img {
            display: block;
            width: 100rem / @baseFont;
            height: 150rem / @baseFont;
            margin: 0px auto
        }

        span:nth-child(1) {
            width: 100%;
            margin: 3rem / @baseFont auto;
            background-color: aliceblue;
        }

        span {
            font-size: 14rem / @baseFont;
            display: block;
            line-height: 100%;
            width: 180rem / @baseFont;
            text-align: left;
            font-weight: 500;
            margin: 3rem / @baseFont 0rem 3rem / @baseFont 25rem / @baseFont;
            border-bottom: 1rem / @baseFont solid rgb(143, 126, 126);
            white-space: nowrap;
            text-overflow: ellipsis;

            i {
                font-style: normal;
                font-size: 15rem / @baseFont;
                color: rgb(44, 94, 56)
            }
        }

        span:nth-child(-n+3) {
            font-weight: 900;
        }
    }
}